package com.lianzhihui.romeex.mvp.presenter;

import android.content.Context;

import com.lianzhihui.romeex.bean.ZZPostBean;
import com.lianzhihui.romeex.mvp.model.ZZInterface;
import com.lianzhihui.romeex.mvp.model.ZZModel;
import com.lianzhihui.romeex.mvp.view.ZZView;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 2020/11/10 4:09 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class ZZPresenter implements ZZInterface {

    Context context;
    ZZView iView;
    ZZModel iModel;

    public ZZPresenter(Context context, ZZView iView) {
        this.context = context;
        this.iView = iView;
        iModel = new ZZModel(context, this);
    }

    public void zzBiz(ZZPostBean bean) {
        iModel.zhuanZhangBiz(bean);
    }

    @Override
    public void onZZSuccess(String transactionHashcode) {
        iView.onZZSuccess(transactionHashcode);
    }

    @Override
    public void onZZFail() {
        iView.onZZFail();
    }

    @Override
    public void onFailure() {

    }
}
